package top.sssd.auth.service.permission;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import top.sssd.auth.model.permission.entity.Permission;
import top.sssd.auth.model.permission.request.PermissionQueryReq;
import top.sssd.auth.model.permission.request.PermissionSaveOrUpdateReq;
import top.sssd.auth.model.permission.response.PermissionResp;

import java.io.Serializable;
import java.util.List;

public interface PermissionService extends IService<Permission> {

    Page<PermissionResp> queryPage(PermissionQueryReq permissionQueryReq);

    List<PermissionResp> queryPermissionRespListByPermissionReq(PermissionQueryReq permissionQueryReq);

    PermissionResp getPermissionRespById(Serializable id);

    Boolean savePermissionReq(PermissionSaveOrUpdateReq permissionSaveOrUpdateReq);

    Boolean updatePermissionReq(PermissionSaveOrUpdateReq permissionSaveOrUpdateReq);
}

